/**
 * 文章提交 js
 */
var xmlHttp;
function GetXmlHttpObject()
{
	var xmlHttp=null;
	  try
	    {
	    // Firefox, Opera 8.0+, Safari
	    xmlHttp=new XMLHttpRequest();
	    }
	  catch (e)
	    {
	    // Internet Explorer
	    try
	      {
	      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	      }
	    catch (e)
	      {
	      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	      }
	    }
	  return xmlHttp;

}



function post_wz()
{
	xmlHttp = GetXmlHttpObject();
	if(xmlHttp==null)
		{
			alert("浏览器不支持AJAX");
			return;
		}
	var url="post.do";
	url += "?sac001="+document.form1.sac001.value;  
    url += "&sac002="+document.form1.sac002.value;
    url += "&sac003="+document.form1.sac003.value;
   
	xmlHttp.onreadystatechange=post_wz_stateChanged;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	
	
}



function post_wz_stateChanged()
{
	if(xmlHttp.readyState==4)
	{
		if(xmlHttp.responseText=="001")
			{
				alert("保存失败，所有字段都不能为空！");
				return;
			}
	}
	
	
	}